Magproto: only deinit termio if we initted termio.
FMTS=magproto.o gpx.o geo.o gpsman.o mapsend.o mapsource.o \
gpsutil.o tiger.o pcx.o csv.o cetus.o gpspilot.o magnav.o \
- psp.o mxf.o
+ psp.o mxf.o holux.o
OBJS=main.o queue.o route.o waypt.o util.o vecs.o mkshort.o \
coldsync/util.o coldsync/pdb.o $(FMTS)
static void
termdeinit()
{
- tcsetattr(magfd, TCSANOW, &orig_tio);
+ if (!is_file) {
+ tcsetattr(magfd, TCSANOW, &orig_tio);
+ }
}
char *
}
ivecs->rd_init(fname);
ivecs->read();
+ ivecs->rd_deinit();
break;
case 'F':
ofname = optarg;
if (ovecs) {
ovecs->wr_init(ofname);
ovecs->write();
+ ovecs->rd_deinit();
}
break;
case 's':